<?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\BaseController;
use App\Models\MainBusiness;
use Illuminate\Http\Request;

class MainBusinessController extends BaseController
{


    public function show(Request $request)
    {

        $main_business = MainBusiness::query()->where('status', 1)->orderBy('sort')->get()->toArray();

        if ($main_business) {
            return $this->success($main_business);
        } else {
            return $this->failure('数据不存在');
        }

    }

}
